package com.qs.education.bean.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Getter;
import lombok.Setter;

/**
 * @class EducationSubject
 * @author Leon
 * @description
 * @date Nov 5, 2018
 */
@Entity
@Table(name="education_subject")
@Getter
@Setter
public class EducationSubject {
	
	@Id
	@Column(name="id" ,unique=true,nullable=false)
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Integer id;
	private String name;
	
/*	@OneToMany(mappedBy="subject")
	@JsonIgnoreProperties(value = { "group","school","subject","groups" })
	private List<EducationTeacher> teachers = new ArrayList<EducationTeacher>();*/
	
/*	@OneToMany
	@JoinColumn(name="subject_id")
	@JsonIgnoreProperties(value = { "suject","grade","subjectLessonList"})
	private List<EducationSubjectUnit> subjectUnitList;*/
}
